const Controller = require('./baseController');

module.exports = app => {
  class GameController extends Controller {
    async ping() {
      console.log('=======================')
      console.log(this.ctx.args[0])
      console.log('=======================')
      const message = this.ctx.args[0];
      await this.ctx.socket.emit('test', `test message: ${message}`);
    }
  }
  return GameController
};
